Skip to content

layer is loading?#24

Open
sttawm wants to merge 2 commits into
data()from
layer-isLoading
Open

layer is loading?#24
sttawm wants to merge 2 commits into
data()from
layer-isLoading

Conversation

@sttawm

@sttawm sttawm commented Jul 17, 2015

Copy link
Copy Markdown
Contributor

layer.isLoading()

Whether or not the layer is still waiting for visible tiles to be loaded and rendered.

layer.on("loading")

Listen for changes in the loading state. When layer.isLoading() switches from true to false, or vice versa, this event will be triggered.

Tested

With layer.on("loading", function(e) { console.log(e); }), concurrent with panning & zooming, layer.zoom, and window resizing.

Not sure if this is the exact implementation, or in the style, that we want, but it seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant